#include <stdio.h>

int MyStrcmp(const char *p1,const char *p2)
{
    while(*p1 != '\0' && *p2 != '\0')
    {
        if(*p1 == *p2)
        {
            p1++;
            p2++;
        }
        if(*p1 != *p2)
        return *p1-*p2;
    }
    return *p1 - *p2;
}

int main()
{
    char *p1 = "hella";
    char *p2 = "hell";
    printf("%d\n",MyStrcmp(p1,p2));

    return 0;
}